


from django.conf.urls import url
from Users import views

urlpatterns = [
    # 用户注册 reverse(Users: register) == '/register.html'
    url(r'^register.htm$', views.UserRegister.as_view(), name='register'),
    # 用户名是否重复
    url(r'^usernames/(?P<username>[a-zA-Z0-9_-]{5,20})/count.htm$', views.UsernameCountView.as_view()),
    # 手机号是否重复
    url(r'^mobile/(?P<mobile>1[3-9]\d{9})/count.htm$', views.mobileCountView.as_view()),
    # 用户登录
    url(r'^login.htm$', views.UserLoginView.as_view(), name='login'),
]
